<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /* const arr1 = new Int8Array(10);
      console.log(arr1, arr1.length, arr1.byteLength); */

      /* const arr = Int32Array.of(3, 5, 6, 7);
      console.log(arr); */

      /* const arr = Int8Array.of(35, 7, 3, 11);
      const arr2 = new Int8Array(arr);
      console.log(arr, arr2); */

      let arr = new Int32Array(1111, 121, 323);
      arr[1] = 12312;
      console.log(arr);
      for (const item of arr) {
        console.log(item);
      }
      arr = arr.map((v) => v * v);
      console.log(arr);
    </script>
  </body>
</html>
